#本指南使用 Fashion MNIST 数据集，该数据集包含 10 个类别的 70,000 个灰度图像。这些图像以低分辨率（28x28 像素）展示了单件衣物
# TensorFlow and tf.keras
import tensorflow as tf

# Helper libraries
import numpy as np
import matplotlib.pyplot as plt

print(tf.__version__)

# 导入服装图像数据集
fashion_mnist = tf.keras.datasets.fashion_mnist
# 加载数据集，其中包含训练集和测试集
(train_images, train_labels), (test_images, test_labels) = fashion_mnist.load_data()

# 创建数据集
class_names = ['T-shirt/top', 'Trouser', 'Pullover', 'Dress', 'Coat',
               'Sandal', 'Shirt', 'Sneaker', 'Bag', 'Ankle boot']



